package com.devsoft.foodflip;

import android.content.Context;
import android.graphics.Bitmap;

public class Player {
	private int player_id;//For multiplayer
	private int player_pos;
	private int score;
	private boolean pan_pos;//Left(0) or Right(1)
	private int powerup_state;
	private boolean is_dead;
	private Bitmap image;
	private Context context;
	
	public Player(int id, int pos, Bitmap img){
		this.player_id=id;
		this.player_pos=pos;
		this.pan_pos=false;
		this.image=img;
		this.score=0;
		this.is_dead=false;
		this.powerup_state=0;
		}
	
	public Player(Context cont){
		this.context=cont;
	}
	
	public int getID(){
		return player_id;
	}
	
	public int getPosition(){
		return player_pos;
	}
	
	public boolean getPan(){
		return pan_pos;
	}
	
	public int getScore(){
		return score;
	}
	
	public int getPowerUpState(){
		return powerup_state;
	}
	
	public boolean getDeadState(){
		return is_dead;
	}
	
	public Bitmap getImage(){
		return image;
	}
	
	public void setPowerUpState(int state){
		this.powerup_state=state;
	}
	
	public void setDeadState(boolean state){
		this.is_dead=state;
	}
	
	public void setScore(int points){
		this.score+=points;
	}
	
	public void setPosition(int location){
		this.player_pos=location;
	} 
	
	public void setPan(boolean orientation){
		this.pan_pos=orientation;
	}
}
